﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="B2B.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="main_content" runat="server">
  <div align="center" style="float:left">
        <%
            foreach (var sanpham in (ArrayList)ViewData["listSP"])
            {
                string maSP = ((SP_DanhSachSanPham)sanpham).MaSanPham.ToString();
                string tenSP = ((SP_DanhSachSanPham)sanpham).TenSanPham.ToString();
                string hinhAnh = ((SP_DanhSachSanPham)sanpham).HinhAnh.ToString();
                string url = "../../Images/Alibaba/" + hinhAnh;
                string gia = ((SP_DanhSachSanPham)sanpham).Gia.ToString();
                string soLuongDatToiThieu = ((SP_DanhSachSanPham)sanpham).SoLuongDatToiThieu.ToString();
                string tenDVT = ((SP_DanhSachSanPham)sanpham).TenDVT.ToString(); 
          %>
            <div class="sanpham">
                <div style="height:40px; overflow:hidden"><a href="/Product/ProductDetail/<%=maSP %>"> <%=tenSP %> </a></div>
                <div style="height:200px"><img src="<%=url %>" width="150px" height="150px" /></div>
                <div>Min oder: <%=soLuongDatToiThieu %><br /> FOB: <%=gia %> / <%=tenDVT %></div>
            </div>
            
          <%} %>

     
  </div>
    <!--Bo di cac khoang div-->
  <div class="clr"></div>
  <!--Ket61 thuc-->
  <!--Bắt đầu phân trang-->
  <div align="right">
    <a href="#">1 </a>
    <a href="#">2 </a>
    <a href="#">3 </a>
    <a href="#">4 </a>
    ...
    <a href="#">8 </a>
    <a href="#">9 </a> 
  </div>
  <!--Kết thúc phân trang-->
 

</asp:Content>

